<template>
  <div>
    <el-row>
      <el-col><h2>Welcome to my world</h2></el-col>
    </el-row>

    <el-row>
      <!-- 轮播图 -->
      <el-col>
        <el-carousel indicator-position="outside" style="width: 1010px" height="400px">
          <el-carousel-item v-for="item in imgArray" :key="item">
            <img :src="item" class="rightImg" />
          </el-carousel-item>
        </el-carousel>

        <el-card>
          <el-row>
            <el-col :span="8">
               <p>What's stopping you?</p>
               <p>Are you too tired?</p>
               <p>Not getting enough sleep?</p>
               <p>There isn't enough time?</p>
               <p>Is it really so?</p>
               <p>You?</p>
            </el-col>
             <el-col :span="12">
               <img width="650px" height="300px" src="../../assets/nuli.jpg" alt="">
            </el-col>
          </el-row>
        </el-card>
      </el-col>
    </el-row>

    <div class="bottom ">
      <el-row>
        <el-col :span="5">
           <audio controls loop>
            <source src="../../assets/fanfangxian.mp3"  type="audio/mpeg">
          </audio>
        </el-col>
        <el-col :span="10" :offset="3" class="aa">
          写的是真累,就到这吧,不想敲了,vue2第一个练手项目结束!
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "Welcome-W",
  data() {
    return {
       imgArray: [
        require('/电商平台项目/vue-shop/src/assets/shashenwan.jpg'),
        require('/电商平台项目/vue-shop/src/assets/index.jpg'),
        require('/电商平台项目/vue-shop/src/assets/meinv.jpg'),
        require('/电商平台项目/vue-shop/src/assets/telante.jpg'),
      ]
    };
  },
};
</script>

<style lang="less" scoped>
.rightImg {
  width: 800px;
  height: 540px;
}
  .el-carousel__item h3 {
    color: #475669;
    font-size: 18px;
    opacity: 0.75;
    line-height: 300px;
    margin: 0;
  }
  
  .el-carousel__item:nth-child(2n) {
    background-color: #99a9bf;
  }
  
  .el-carousel__item:nth-child(2n+1) {
    background-color: #d3dce6;
  }
  .rightImg{
    width: 100%;
    height: 100%;
  }
  .bottom {
    background-color: pink;
    height: 50px;
    margin-top: 10px;
  }
  .aa{
    text-align: center;
    line-height: 50px;
  }
</style>